package com.pattern.behavior.responsibilitychain;

import java.util.Random;

public class OtherRProcessor extends ResponsibilityProcessor {
    @Override
    public void processRequest(String request) {
        if (new Random().nextBoolean()) {
            System.out.println(request + " was processed in " + this.getClass().getName());
        } else {
            System.out.println(request + " was not processed in any ResponsibilityProcessors.  ");
        }
    }
}
